class Upload < ActiveRecord::Base
  belongs_to :imageable, polymorphic: true

  has_attached_file :uploaded_file, styles: { original: "4000x4000>", large: "1500x1500>", medium: "300x300>", small: "200x200>", thumb: "100x100>" }
  validates_attachment :uploaded_file, content_type: { content_type: ["image/jpg", "image/jpeg", "image/png", "image/gif"] }
end